package com.pacai.Method;

public class MethodDetail {
    public static void main(String[] args) {

    }
}

class AA {
    public void f4() {
        System.out.println("hello");
        System.out.println("hello");
        System.out.println("hello");
        System.out.println("hello");
    }


    public double f1() {
        double d1 = 1.1 * 3;
        int n = 100;
        //return d1;//ok
        return n;//ok
    }

    public int[] getSumAndSub(int n1,int n2){
        int[] resArr = new int[2];
        resArr[0] = n1 + n2;
        resArr[1] = n1 - n2;
        return resArr;
    }

}